<?php

class Application_Form_Pinnwandeintrag extends Zend_Form
{

    public function init()
    {
        $this->setName("Pinnwandeintrag");
        $this->setMethod('post');
        

        $titel = new Zend_Form_Element_Text('titel');
        $titel->setLabel('Titel*:')
        	->setRequired(true)
        	->addFilter('HtmlEntities');
        
        // create text area for Nachrichten
        $text = new Zend_Form_Element_Textarea('inhalt');
        $text->setLabel('Eintrag*:')
        	->setOptions(array(
        		'id' => 'comment',
        		'rows' => '3',
        		'cols' => '55',
        		))
        	->setRequired(true)
        	->addFilter('HtmlEntities');
        		
		// create submit button
		$submit = new Zend_Form_Element_Submit('submit');
		$submit->setLabel('Submit')
		->setOptions(array('class' => 'submit'));
		
		
        // attach elements to form
        $this->addElement($titel)
        		->addElement($text)
        		->addElement($submit);
    }


}

